DoesEventBelongToUser   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 4
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 4
c 0
b 0
f 0
rs 10

1 Function

Rating   Name   Duplication   Size   Complexity  
A isSatisfiedBy 0 2 1
1
import { Event } from '../Event.entity';
2
import { User } from 'src/Domain/HumanResource/User/User.entity';
3
4
export class DoesEventBelongToUser {
5
  public isSatisfiedBy(event: Event, user: User): boolean {
6
    return event.getUser().getId() === user.getId();
7
  }
8
}
9